// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// 引入elementui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// 引入user.js 模拟接口
// import user from "../mock/user.js"

// 只要在package.json中存在的都可以这样引入
import axios from "axios"

// 配置基础路径
axios.defaults.baseURL="https://www.fastmock.site/mock/bc1387ba95d6c9f9ba4dc3615827f8eb/service"
// axios全局引入
Vue.prototype.$http = axios;
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
